<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>

    </style>
</head>
<body>

</body>
<button id="open" >open</button>
<dialog id="dog">
    111
</dialog>

<script>
    const dog=document.querySelector('#dog')
    let open = document.querySelector('#open')
    open.addEventListener('click',function (){
        dog.showModal()
    })
</script>
</html>
